var ACCOUNT_ADD = function(){
	_add(function(){
        $('#list').datagrid('reload');
	});
};
var ACCOUNT_UPDATE = function(id){
	_update(id,function(){
        $('#list').datagrid('reload');
	});
};
var ACCOUNT_DELETE = function(id){
	_delete(id,function(){
		$('#list').datagrid('reload');
	});
};
//扩展验证
$.extend($.fn.validatebox.defaults.rules,{
	equals: {
		validator: function(value,param){
			return value == $(param[0]).val();
		},
		message: '两次密码输入不一致！'
	}
});
$(function(){
	//筛选
    $("#search").click(function(){
        _search();
    });
	//删除筛选条件
    _delcond(function(){
    	$('#list').datagrid('load',$("#condition").data('params')||{});
    });
});
